// apiInterface.js

export class ApiInterface {
  constructor(apiUrl, apiKey, apiVersion, questionText) {
    this.apiUrl = apiUrl;
    this.apiKey = apiKey;
    this.apiVersion = apiVersion;
    this.questionText = questionText;
  }

  async sendRequest(data) {
    throw new Error("sendRequest method must be implemented by subclasses");
  }

  setRequestId(requestId) {
    throw new Error("sendRequest method must be implemented by subclasses");
  }
}
